//logs.js
const api = require('../../../api/index.js')
Page({
  data: {
    ellipsis: true, // 文字是否收起，默认收起
    btnText: "全部显示"
  },
  ellipsis: function() {
    var value = !this.data.ellipsis;
    this.setData({
      ellipsis: value,
    })
  },
  onLoad: function(options) {
    console.log(options)
    var data = {}
    var that = this
    data.e_id = options.ind
    api.particulars(data, (res) => {
      console.log(res)
      that.setData({
        content: res.data.result
      })
    })
  },
  selectTime: function() {
    var content = this.data.content
    wx.navigateTo({
      url: '../shijian/shijian?price=' + content.Booking.price + "&p_price=" + content.Booking.p_price + "&e_id=" + content.Booking.e_id,
    })
  }
})